package com.nicoB.tetris.blocks {
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.geom.ColorTransform;		

	/**
	 * @author nicoB
	 * @date 14 nov. 2008
	 * @project Tetris
	 */
	public class BlockItem extends MovieClip {
		
		public var bg : Sprite;
		
		public function BlockItem() {
		}
		
		
		public function set color(col : uint):void{
			var colT : ColorTransform = new ColorTransform();
			colT.color = col;
			
			bg.transform.colorTransform = colT;
		}

		
		public function disappear() : void {
			gotoAndStop("disappear");
		}
	}
}
